package com.sxhuayuan.parking.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.sxhuayuan.parking.entity.Admin;

public interface AdminDao extends BaseDao<Admin, Long> {

	Admin findByUsername(String username);

	@Modifying
	@Query(value = "delete from hypk_admin_role where admins_id = ?1", nativeQuery = true)
	void deleteAdminRole(Long id);
}
